<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/luntan/Public/Css/css.css" />
<script type="text/javascript" src="/luntan/Public/Js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/luntan/Public/Js/jquery-1.8.3.min.js"></script>
<script>
function reset(){
     $('#myform').reset();
}
</script>
<title>我们论坛首页</title>
</head>

<body>

<div id="wapper">
	<div class="header">
		<div class="kuang">
			<div class="type">
				<ul>
					<li><a href="<?php echo U('Message/tiezi',array('class' => '生活类'));?>">生活类</a></li>
					<li><a href="<?php echo U('Message/tiezi',array('class' => '学习类'));?>">学习类</a></li>
					<li><a href="<?php echo U('Message/tiezi',array('class' => '娱乐类'));?>">娱乐类</a></li>
					<li style="border:none"><a href="<?php echo U('Message/tiezi',array('class' => '时事类'));?>">时事类</a></li>
				</ul>
			</div>
		
		</div>
			
			
	</div>
	
	<div id="index">
		<div class="kuang">
			<div class="id-ct">
			
				<div class="ourname">
					<h2>OUR TIPS</h2>
					<h1>爱贴吧爱生活</h1>
				
				
				</div>
	
			
				<div class="login">
				<div class="login-left">
					
				
					<div class="sousuo">
					<form action="<?php echo U('Index/search');?>" target="iframe_b" method="post" id="myform">
						<input type="text" class="surf" name="keyword">
						<input type="submit" value="搜索" class="surf-bt">
					</form>
					</div>
				
					<div class="mylogin">
					    <h2>我在贴吧</h2>
						<img src='/luntan/Public/uploads/<?php echo ($ar["head"]); ?>'>
						<p><?php echo ($ar["username"]); ?></p>
						<a href="<?php echo U('Mypage/mypage');?>" id="aaa">个人中心</a>
						<a href="<?php echo U('Index/publish');?>" id="aaa" target="iframe_b">发布帖子</a>
						
					</div>
					
					<div class="mylogin" >
					     <h2>最热排名：</h2>
						<?php if(is_array($li)): foreach($li as $key=>$vo): ?><a href="<?php echo U('Message/remen',array('tid' => $vo['tid']));?>"><p><?php echo ($vo["title"]); ?></p></a><?php endforeach; endif; ?>
						
					</div>
					
					
					
					
					<div class="mylogin">
					    <h2>我的关注：</h2>
						<?php if(is_array($data)): foreach($data as $key=>$vo): ?><a href=""><span><?php echo ($vo["username"]); ?></span></a><?php endforeach; endif; ?>
					</div>
					
					
					<div class="mylogin">
					   <h2>分类：</h2>
						<a href="<?php echo U('Message/tiezi',array('class' => '生活类'));?>"><span>生活类</span></a>
						<a href="<?php echo U('Message/tiezi',array('class' => '学习类'));?>"><span>学习类</span></a>
						<a href="<?php echo U('Message/tiezi',array('class' => '娱乐类'));?>"><span>娱乐类</span></a>
						<a href="<?php echo U('Message/tiezi',array('class' => '时事类'));?>"><span>时事类</span></a>
						
					</div>
					
					
					</div>
					
					
					<div class="login-right">
					<div class="hot">
					<iframe  name="iframe_b"  src="<?php echo U('Index/hot');?>" class="show" frameborder="0"></iframe>
						
						</div>
						
						
					   </div>
					</div>
			  </div>	
					
	
		</div>
				
				
	</div>
			
	
  </div>







</body>
</html>